import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login';
import Home from '@/components/Home';
import Shi from '@/components/Shi';
import EmpList from '@/components/EmpList';
import Sys from '@/components/Sys';

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login,
      hidden: true
    }, {
      path: "/home",
      name: "主页",
      component: Home,
      hidden: true,
      meta: {
        requireAuth: true,
        keepAlive: false
      },
      children: [
        {
          path: "/empList",
          name: "正式员工",
          component: EmpList
        },
        {
          path: "/shi",
          name: "实习生",
          component: Shi
        },
        {
          path: "/sys",
          name: "系统管理",
          component: Sys
        },
      ]
    }
  ]
})
